﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
	CodeBehind="Communication.aspx.cs" Inherits="SBACN.WebSite.Admin.Committee.Communication" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
	function Check() {

		var file = $jqy("#<%= FileUp.ClientID %>").val();
		if (file == "") {
			alert("请选择需要上传的文件！");
			return false;
		}
		var fileArr = file.split("\\");
		var fileTArr = fileArr[fileArr.length - 1].toLowerCase().split(".");
		var filetype = fileTArr[fileTArr.length - 1];
		if (filetype != "xls") {
			alert("上传文件必须为xls文件！");
			return false;
		}
		return true;
	}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<div id="contentDiv">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table-stroke2">
			<tr>
				<td colspan="3" class="form-title2">
					<asp:Label ID="CouncilName" runat="server" Text=""></asp:Label>
				</td>
			</tr>
			<tr>
				<td width="20%" class="form-label-1">
					<span style="color: Red">*</span>上传正副主任单位：
				</td>
				<td width="50%" class="form-body-1">
					<asp:FileUpload runat="server" ID="FileUp" Width="98%" />
				</td>
				<td width="30%" class="form-body-1">
					<asp:Button runat="server" Text="确定" ID="Subbtn" OnClientClick="return Check();" OnClick="Subbtn_Click"
						CssClass="btnsearch" />&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../Template/专委会正副主任单位.xls">下载正副主任单位模版</a>
				</td>
			</tr>
			<tr>
				<td width="20%" class="form-label-1">
					下载正副主任单位：
				</td>
				<td width="80%" colspan="2" class="form-body-1">
					&nbsp;&nbsp;<a href="<%= FileLoad %>">下载正副主任单位</a>
				</td>
				<td>
				</td>
			</tr>
		</table>
		</div>
</asp:Content>
